package com.hclc.util.excption;

import lombok.Data;

@Data
public class ValidateException extends BaseException {
    private static final long serialVersionUID = 1L;

    /**
     * 失败返回的数据
     */
    private Object data;

    public ValidateException() {
    }

    public ValidateException(Throwable ex) {
        super(ex);
    }

    public ValidateException(String message) {
        super(message);
    }

    public ValidateException(String message, Throwable ex) {
        super(message, ex);
    }

    public ValidateException(Object data) {
        this.data = data;
    }

    public ValidateException(Object data, String message) {
        super(message);
        this.data = data;
    }
}
